﻿#pragma execution_character_set("utf-8")
#ifndef DIALOGSPECTROMETER_H
#define DIALOGSPECTROMETER_H

#include <QDialog>
#include <QStandardItemModel>

#include "BaseSpectroMeter.h"
#include "spectrometerdata.h"
#include "SpectroMeterControl.h"

namespace Ui {
class DialogSpectroMeter;
}

class BaseSpectroMeter;
class SpectroMeterControl;

class DialogSpectroMeter : public QDialog
{
    Q_OBJECT

public:
    explicit DialogSpectroMeter(QWidget *parent = 0);
    ~DialogSpectroMeter();
    void InitDialog();

private slots:
    void on_Btn_connect_clicked();
    void on_Btn_StartCollect_clicked();

    void on_Btn_StopCollect_clicked();

private:
    Ui::DialogSpectroMeter *ui;
    BaseSpectroMeter *_spectroMeter;
    QStandardItemModel *_spectroListModel = nullptr;
    SpectroMeterControl *_control;

    void updataSpectroInfo(QList<SpectroInfoTag> listSpectroInfo);
};

#endif // DIALOGSPECTROMETER_H
